<?php
require('config.php');

        $tiezi_id=$_REQUEST['tiezi_id'];
		$sql="select * from `".$oto."_posts`,`".$oto."_users` where `id`='".$tiezi_id."' and ".$oto."_posts.userId=".$oto."_users.userId";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$tiezi_info[]=$row;//将取得的所有数据赋值给person_info数组
		}
		if(isset($tiezi_info))
		{
			$tiezi_info[0]['img_list']=explode("|",$tiezi_info[0]['img']);
		}
		echo json_encode($tiezi_info);
?>